2006-06-08 Matthias Clasen <mclasen@redhat.com>
+ * tests/testprint.c: Update for api changes.
+
+ * gtk/gtkprintoperation.c: Fix some copy-and-paste errors,
+ and rename the pdf-target property to export-filename.
+
* gtk/gtkfilechooserdefault.c: Turn off profiling code.
* tests/print-editor.c: Update for api changes.
2006-06-08 Matthias Clasen <mclasen@redhat.com>
+ * tests/testprint.c: Update for api changes.
+
+ * gtk/gtkprintoperation.c: Fix some copy-and-paste errors,
+ and rename the pdf-target property to export-filename.
+
* gtk/gtkfilechooserdefault.c: Turn off profiling code.
* tests/print-editor.c: Update for api changes.
* Since: 2.10
*/
g_object_class_install_property (gobject_class,
- PROP_USE_FULL_PAGE,
+ PROP_TRACK_PRINT_STATUS,
g_param_spec_boolean ("track-print-status",
P_("Track Print Status"),
P_("TRUE if the print operation will continue to report on the print job status after the print data has been sent to the printer or print server."),
GTK_PARAM_READWRITE));
/**
- * GtkPrintOperation:pdf-target:
+ * GtkPrintOperation:export-filename:
*
- * The name of a PDF file to generate instead of showing
- * the print dialog.
+ * The name of a file file to generate instead of showing
+ * the print dialog. Currently, PDF is the only supported
+ * format.
*
* The intended use of this property is for implementing
* "Export to PDF" actions.
* Since: 2.10
*/
g_object_class_install_property (gobject_class,
- PROP_JOB_NAME,
- g_param_spec_string ("pdf-target",
- P_("PDF target filename"),
- P_("PDF target filename"),
+ PROP_EXPORT_FILENAME,
+ g_param_spec_string ("export-filename",
+ P_("Export filename"),
+ P_("Export filename"),
NULL,
GTK_PARAM_READWRITE));
print = gtk_print_operation_new ();
gtk_print_operation_set_n_pages (print, 2);
gtk_print_operation_set_unit (print, GTK_UNIT_MM);
- gtk_print_operation_set_pdf_target (print, "test.pdf");
+ gtk_print_operation_set_export_filename (print, "test.pdf");
g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL);
g_signal_connect (print, "request_page_setup", G_CALLBACK (request_page_setup), NULL);
res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
/* Test subclassing of GtkPrintOperation */
print_file = test_print_file_operation_new ("testprint.c");
test_print_file_operation_set_font_size (print_file, 12.0);
- gtk_print_operation_set_pdf_target (GTK_PRINT_OPERATION (print_file), "test2.pdf");
+ gtk_print_operation_set_export_filename (GTK_PRINT_OPERATION (print_file), "test2.pdf");
res = gtk_print_operation_run (GTK_PRINT_OPERATION (print_file), GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL);
return 0;